﻿var SiteUserVm = function(jsonOfObject) {
    var self = this;
    self.UserName = ko.observable();

    self.IsLoggedIn = ko.computed(function () {
        return self.UserName() != null;
    });

    if (jsonOfObject != null) {
        self.UserName(jsonOfObject.Name);
    }
};